<?php
include_once($_SERVER['DOCUMENT_ROOT'] . '/htqlmba/models/m_donvi.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/htqlmba/controls/c_capNhatDonVi.php');
?>
<link href="/htqlmba/libraries/css/capnhatdv.css" type="text/css" rel="stylesheet">
<!--Noi dung xu ly-->
<div class="bodyStyle">
    <form id="form1" name="themdonvi" method="post" >
        <table width="600px" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2" class="TableHeader1"> &equiv; Thêm đơn vị</td>
            </tr>
            <tr>
                <td width="128" class="TableField2" >Mã đơn vị</td>
                <td width="372" class="TableField3">
                    <input type="text" name="txtmadv" id="txtmadv" size="15"  value="<?php echo $madv; ?>" /> <span class="error">* <?php echo $madvErr; ?></span></td>

            </tr>
            <tr>
                <td class="TableField2">Tên đơn vị</td>
                <td class="TableField3"><input type="text" name="txttendv" id="txttendv" size="35" value="<?php echo $tendv; ?>"/>  <span class="error">* <?php echo $tendvErr; ?></span> </td>
            </tr>
            <tr>
                <td class="TableField2">Địa chỉ đơn vị</td>
                <td class="TableField3"><label for="txtlienhedv"></label><input name="txtdiachidv" type="text" id="textfield" size="35"  value="<?php echo $diachidv; ?>"/></td>
            </tr>
            <tr>
                <td class="TableField2">Thông tin liên hệ</td>
                <td class="TableField3">
                    <input name="txtlienhedv" type="text" id="textfield3" size="35" value="<?php echo $lienhedv; ?>" /></td>
            </tr>
            <tr>
                <td class="TableField2">Tên tài khoản </td>
                <td class="TableField3">
                    <input name="txttentk" type="text" id="textfield4" size="35" value=" " /> <span class="error">* <?php echo $tentkErr; ?></span>  </td>
            </tr>
            <tr>
                <td class="TableField2">Mật khẩu</td>
                <td class="TableField3">
                    <input name="txtmatkhau" type="password" id="textfield5" size="35" value="" /> <span class="error">* <?php echo $matkhauErr; ?></span> </td>
            </tr>
            <tr>
                <td class="TableField2">Nhập lại mật khẩu</td>
                <td class="TableField3">
                    <input name="txtmatkhau2" type="password" id="textfield6" size="35" value="<?php echo $matkhau2; ?>" /> <span class="error">* <?php echo $matkhau2Err; ?></span> </td>
            </tr>
            <tr>
                <td class="TableField2">Quyền</td>
                <td class="TableField3">
                    <select name="txtquyen" id="txtquyen" >
                        <option value="" ></option>
                        <option value="1" <?php if ($quyen == "1") echo "selected"; ?> >Phòng KH-KT (1)</option>
                        <option value="2" <?php if ($quyen == "2") echo "selected"; ?> >Đơn vị thành viên (2)</option>
                        <option value="3" <?php if ($quyen == "3") echo "selected"; ?> >Đơn vị nhập số liệu (3)</option>
                    </select> <span class="error">* <?php echo $quyenErr; ?></span> </td>
            </tr>
            <tr>
              <td>&nbsp;</td></tr>
            <tr>
                <td colspan="2" class="btn_x"><input type="submit" name="btnthemdv2" id="btnthemdv2" value="Thêm đơn vị" />
                    <input type="submit" name="btnreset" id="btnreset" value="Xóa dử liệu nhập vào" />&nbsp; &nbsp; <a href="index.php?content=qldv">Trở về đơn vị</a> </td>
            </tr>
        </table>
    </form>
</div>
